package com.example.order.model.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("u_order")
public class OrderPO extends BasePO{
    private Long id;
    //订单
    @TableField(value = "order_num")
    private String orderNum;
    //用户ID
    @TableField(value = "user_id")
    private String userId;
    //商品id
    @TableField(value = "goods_id")
    private Long goodsId;
    //商品价格
    private Double price;
    //商品优惠价格
    @TableField(value = "favorable_price")
    private Double favorablePrice;
    //用户实付金额
    @TableField(value = "pay_amount")
    private Double payAmount;
}
